home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan
/
Opus 5 - Magellan.iso
/
DOpus_Install
/
ARexx
/
Storage
/
Modules
/
DOpusFuncs_Link.dopus5
< prev
next >
Wrap
Text File
|
1996-07-17
|
2KB
|
58 lines
/* DOpusFuncs_Link for Directory Opus 5.5
by Leo 'Nudel' Davidson for Gods'Gift Utilities
email: leo.davidson@keble.oxford.ac.uk www: http://users.ox.ac.uk/~kebl0364
$VER: DOpusFuncs_Link 1.3 (8.6.96)
Adds the extra functions in the DOpusFuncs utility as internal Opus 5
commands. Note that it's (slightly) quicker to run DOpusFuncs the old,
direct way, but this method is nicer.
Eventually, DOpusFuncs will be turned into a propper module, anyway
(I hope). This script made more for fun than anything else... (Given
that this script has to be called for all functions, it would probably
be faster to impliment everything in here as ARexx ;-) ).
This program must go in the DOpus5:Modules directory. The DOpusFuncs
executable must be in the command-path (or resident). DOpus5:c/ should
be in the command-path so you can leave it in there.
DOpusFunc's ClipEntry command is not supported for obvious reasons (if you
read the docs) -- you still have to use that as before.
The NewPos/K argument is not currently supported because if would require
a little work and is hardly worth it IMO, for now at least.
*/
options results
options failat 99
parse arg portname function source dest arguments
address value portname
/* No version check as pre 5.5 doesn't support these scripts at all. */
Select
When function='init' then do
dopus command "ScanParent" program "DOpusFuncs_Link" desc "'Read parent directory to lister'" template "NEW/S"
dopus command "WinCopy" program "DOpusFuncs_Link" desc "'Clone a lister'" template "NEW/S"
dopus command "WinSwap" program "DOpusFuncs_Link" desc "'Swap two listers'" template "PATH/S"
dopus command "LCloseAll" program "DOpusFuncs_Link" desc "'Close all listers'"
dopus command "LIconAll" program "DOpusFuncs_Link" desc "'Iconify all listers'"
end
When function='ScanParent' then
address command "DOpusFuncs" portname "ScanParent" arguments
When function='WinCopy' then
address command "DOpusFuncs" portname "WinCopy" arguments
When function='WinSwap' then do
If Find(Upper(arguments),"PATH") == 0 Then
address command "DOpusFuncs" portname "WinSwap"
else
address command "DOpusFuncs" portname "PathSwap"
end
When function='LCloseAll' then /* These should certainly be "inline" :) */
lister close all
When function='LIconAll' then
lister iconify all
Otherwise
End